import 'es6-promise/auto'
import '@/utils/polyfill'
import Vue from 'vue'
import Toast from '@/components/Toast'
import Utils from '@/utils'
import App from '@/App'
import createRouter from '@/router'
import xhr from '@/service/xhr'
import mixins from '@/mixins'
import '@/style/public/public.less'
import '@/components/Toast/style.less'

const router = createRouter()

Vue.use(Toast)
Vue.use(Utils)

// add mixin
Vue.mixin(mixins)

Vue.prototype.$xhr = xhr
Vue.config.productionTip = false
/* eslint-disable no-new */
window.VueObjCommon = new Vue({
  el: '#app',
  router,
  // store,
  template: '<App/>',
  components: {
    App
  }
})
